<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import=" modle.UserInformation,java.util.*"%>
<%String account = (String) request.getParameter("account"); %>
<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>Home</title>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="description" content="" />
		<meta name="keywords" content="" />
		<meta name="author" content="" />
		<meta name="twitter:title" content="" />
		<meta name="twitter:image" content="" />
		<meta name="twitter:url" content="" />
		<meta name="twitter:card" content="" />

		<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet">

		<!-- Animate.css -->
		<link rel="stylesheet" href="css/other/animate.css">
		<!-- Icomoon Icon Fonts-->
		<link rel="stylesheet" href="css/other/icomoon.css">
		<!-- Themify Icons-->
		<link rel="stylesheet" href="css/other/themify-icons.css">
		<!-- Bootstrap  -->
		<link rel="stylesheet" href="css/other/bootstrap.css">
		<link rel="stylesheet" href="css/other/bootstrap-select.min.css" />
		<!-- Magnific Popup -->
		<link rel="stylesheet" href="css/other/magnific-popup.css">

		<!-- Owl Carousel  -->
		<link rel="stylesheet" href="css/other/owl.carousel.min.css">
		<link rel="stylesheet" href="css/other/owl.theme.default.min.css">

		<!-- Theme style  -->
		<link rel="stylesheet" href="css/other/style.css">

		<!-- Modernizr JS -->
		<script src="js/other/modernizr-2.6.2.min.js"></script>
		<!-- FOR IE9 below -->
		<!--[if lt IE 9]>
	<![endif]-->
		<!-- jQuery -->
		<script src="js/other/jquery.min.js"></script>
		<!-- jQuery Easing -->
		<!--<script src="js/other/jquery.easing.1.3.js"></script>-->
		<!-- Bootstrap -->
		<script src="js/other/bootstrap.min.js"></script>
		<!--<script type="text/javascript" src="js/other/bootstrap-select.min.js"></script>-->
		<!-- Waypoints -->
		<script src="js/other/jquery.waypoints.min.js"></script>
		<!-- Carousel -->
		<script src="js/other/owl.carousel.min.js"></script>
		<!-- countTo -->
		<script src="js/other/jquery.countTo.js"></script>
		<!-- Magnific Popup -->
		<script src="js/other/jquery.magnific-popup.min.js"></script>
		<script src="js/other/magnific-popup-options.js"></script>
		<!-- Main -->
		<script src="js/other/main.js"></script>
		<script src="js/other/vue.js"></script>
		<style>
			#tab:hover {
				background: #666;
				color: #FAFAFA;
			}
			
			* {
				margin: 0;
				padding: 0;
			}
			
			html,
			body {
				height: 100%;
				overflow: hidden;
				margin: 0;
				padding: 0;
				background: #666;
			}
		</style>

	</head>

	<body>

		<div class="gtco-loader"></div>

		<div id="page">
			<div class="page-inner">
				<nav class="gtco-nav" role="navigation">
					<div class="gtco-container">

						<div class="row">
							<div class="col-sm-4 col-xs-12">
								<div id="gtco-logo">
									<a href="Start.jsp?account=<%=account %>">Home <em>.</em></a>
								</div>
							</div>
							
						</div>

					</div>
				</nav>
			</div>

			<div class="gtco-container">
				<div class="row">
					<div class="col-md-12 col-md-offset-0 text-left">
						<div class="row row-mt-12em">
							<div class="col-md-9 col-md-push-1 animate-box" style="margin-top: 4em;" data-animate-effect="fadeInRight">
								<table class="table table-bordered table-hover" style="color: #F3F3F3;">
									<caption class="h3 text-center">斗地主排行榜</caption>
									<tr class="text-center" id="tab" style="background: rgba(0, 0, 0, 0.5);">
										<th class="text-center">账号</th>
										<th class="text-center">呢称</th>
										<th class="text-center">性别</th>
										<th class="text-center">分数</th>
										
									</tr>

								<%
									@SuppressWarnings("unchecked") 
									List<UserInformation> list = (List<UserInformation>) request.getAttribute("list");
									for (int i = 0; i < list.size(); i++) {
										UserInformation user = list.get(i);
								%>
								<tr class="text-center">
									<td><%=user.getAccount()%></td>
									<td><%=user.getNickname()%></td>
									<td><%if(user.getSex()==0)out.print("男");
										else out.print("女");%></td>
									<td><%=user.getScore()%></td>
								</tr>
								<%
									}
								%>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>

		</div>

	</body>

</html>